<template>
    <view class="message-item">
        <view class="message-title">
            <view class="title-img"></view>
            <view class="title-info">
                <view class="name">{{item.userName}}</view>
                <view class="time">{{item.time}}</view>
            </view>
        </view>
        <view class="message">{{item.text}}</view>
    </view>
</template>
  
  <script>
  export default {
    props:{
        item:{
            type:Object,
            default:()=>({})
        }
    },
    data() {
      return {
        currentUser:"李四"
      }
    },
    onLoad() {},
    methods: {},
  }
  </script>
  
  <style scoped lang="less">
  .message-item{
    // width: 100%;
    background-color: #ffffff;
    margin-top: 10px;
    padding: 10px 10px;
    .message-title{
        width: 100%;
        display: flex;
        .title-img{
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background-color: #607D8B;
        }
        .title-info{
            margin-left: 15px;
            view{
                color:#999;
                line-height: 24px;
                font-size: 14px;
            }
        }
    }
  }
  </style>
  